<?php
require_once("header.php");
//数据库大小
$size = admin_fun_db_size();

$info = admin_fun_find_admin($cookie['id']);

$df = disk_free_space("."); 
$df_size=byte_format($df);
?>
<link href="/static/admin/css/base.css" rel="stylesheet"/>
<link href="/static/admin/css/indexbody.css?c=5" rel="stylesheet"/>
<link rel="stylesheet" href="http://www.jwzcq.com/share/fonticon/iconfont.css">
<style>
.grid td{
height:50px;	    
color: #fff; padding:27px 5px;

}

/*色彩*/
.grid td.bj_01{  
background:#FFBD2A;
}
.grid td.bj_01:hover{  
background:#dc9903;
}

.grid td.bj_02{  
background:#a56fa5;
}
.grid td.bj_02:hover{  
background:#5f3a5f;
}




.grid td.bj_03{  
background:#ce1525;
}
.grid td.bj_03:hover{  
background:#790913;
}


.grid td.bj_04{  
background:#ce1525;
}
.grid td.bj_04:hover{  
background:#790913;
}


.grid td.bj_05{  
background:#05ab7d;
}
.grid td.bj_05:hover{  
background:#026f51;
}

.grid td.bj_06{  
background:#FFBD2A;
}

.grid td.bj_06:hover{  
background:#dc9903;
}


.grid td.bj_07{  
background:#FFBD2A;
}
.grid td.bj_07:hover{  
background:#dc9903;
}


.grid td.bj_08{  
background:#a56fa5;
}

.grid td.bj_08:hover{  
background:#5f3a5f;
}


.grid td.bj_09{  
background:#ce1525;
}
.grid td.bj_09:hover{  
background:#790913;
}


.grid td i{

    font-size: 50px;
    margin: 0 auto;
    display: table;
    line-height: 26px;
}

.grid td a{color:#fff; font-size: 22px; font-family:"微软雅黑";}
.grid td a:hover{color:#fff; }
</style>
<script type="text/javascript" charset="utf-8">
	loader.file({
		css:['list']
	});
	/**
	*	n top菜单第几个从0开始
	* 	l left id值
	* 	m 格式 x_m x：div ID值 m：li ID值
	*	快捷键管理函数
	*/
	function goto_html(n,l,m){

		window.top.topFrame.main_object.func(n,l,m);
	}
</script>
</head>


<body leftmargin="8" topmargin='8' bgcolor="#FFFFFF">
<div style="min-width:780px">

<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
     <div style='float:left;margin-left:7px;margin-top:20px;'>
                <strong><span style="font-size:16px;">顺运通后台应用管理中心</span></strong>
         </div>

   </td>
  </tr>

</table>

<div id='mainmsg'>

  <div class="column1" id="column1" style="width:69%;"><!--左侧开始-->  

  
  <dl class='dbox' id="item5">
  
  <table style="width:100%;text-align:center;" class="grid">
            
     <tr>
        <td class="bj_01"><a href="/admin/admin_address_device_log" target="mainFrame"><i class="icon iconfont icon-baoguo_fahuo"></i>挖机装车</a></td>
        <td class="bj_02"><a href="/admin/admin_address_time_log"><i class="icon iconfont icon-shijian1"></i>计时模式</a></td>
        <td class="bj_03"><a href="/admin/car_list"><i class="icon iconfont icon-shuzhuangtu"></i>多路线运输</a></td>
     </tr>
     
     <tr>        
        <td class="bj_04"><a href="/admin/gasout" ><i class="icon iconfont icon-shangjia"></i>加油管理</a></td>
        <td class="bj_05"><a href="/admin/gasin"><i class="icon iconfont icon-dengchu"></i>进油管理</a></td>
        <td class="bj_06"><a href="/admin/change_pwd"><i class="icon iconfont icon-dengchu"></i> 账号管理</a></td>                            
     </tr>     
     
     <?php if($cookie['group']!=12){?>
     <tr>
        <td class="bj_07"><a href="/admin/admin_device_add"><i class="icon iconfont icon-jiahao"></i>添加设备</a></td>          
        <td class="bj_08"><a href="/admin/admin_project_list"><i class="icon iconfont icon-bianji1"></i>绑定(修改)设备</a></td>     
        <td class="bj_09"><a href="/admin/car_set"><i class="icon iconfont icon-jisuanqi"></i>参数设置</a></td>          
     </tr>                   
     <?php } ?>
              
  </table>
  
  
<!--信息统计结束-->
	<dt class='lside'><div class='l'>我的个人信息</div></dt>
	<dd>
	   <div class="biz">
	   <p>
				您好，<b style="color:#06C"> <?php echo $cookie['account']?></b><br/>				
				上次登录：<?php echo date("Y-m-d H:i:s",$cookie['login_time'])?> | <?php echo $cookie['login_ip']?><br />
				<?php 
				   if(6!=$info['group'] && 12!=$info['group']){
				?>
				可用记录: 
				<b style="color:#06C"> <?php echo $info['limit']?></b> 条
				<?php 
				   if($info['limit']<50){
				?>
				<b style="color:red"> 可用记录不足，为了不影响您的工作，请及时续费 !!</b>
				<?php 
				}
				?><br/>
				已用记录: <b style="color:#06C"> <?php echo $info['limited']?></b> 条<br/>
				<?php 
                 }
				?>
	   </p>							
	   </div>
    </dd></dl>
  

<dl class='dbox' id="item9">
<!--信息统计结束-->
	<dt class='lside'><div class='l'>系统信息</div></dt>
	<dd>
	   <div class="biz">
	   <p>		
                       服务器系统及 PHP:<?php echo PHP_OS?> / PHP <?php echo PHP_VERSION?><br/>
	           服务器软件:<?php echo $_SERVER['SERVER_SOFTWARE']?><br/>
	           服务器 MySQL 版本:<?php echo mysql_get_server_info()?><br/>
	          数据库大小:<?php echo $size?> MB<br/>
	   PHP插件检测:
						<?php
							if(function_exists('imagecreate')) {
								echo '<span>GD</span>&nbsp;';
							}

							if(function_exists('mb_stristr')) {
								echo 'MB_STRING&nbsp;';
							}

							if(function_exists('mysql_connect')) {
								echo 'MYSQL&nbsp;';
							}

							if(function_exists('curl_init')) {
								echo 'CURL&nbsp;';
							}

							if(function_exists('json_encode')) {
								echo 'JSON&nbsp;';
							}

							if(function_exists('zip_close')) {
								echo 'ZIP&nbsp;';
							}

							if(function_exists('socket_accept')) {
								echo 'SOCKET&nbsp;';
							}

							if(class_exists('SoapServer')) {
								echo 'SOAP&nbsp;';
							}

							if(function_exists('ftp_get')) {
								echo 'FTP&nbsp;';
							}
						?>				
	   </p>						
	   </div>
    </dd></dl>	
    
<?php
  if($cookie['account']=='admin'){
?>    
<dl class='dbox' id="item9">
	<dt class='lside'><div class='l'>磁盘状态</div></dt>
	<dd>
	   <div class="biz">
	   <p>
	      <font color="<?php echo $df_size<5?'red':'blue';?>">剩余空间: <?php echo $df_size;?></font>
	      <a href="/admin/picremove?cookuid=1">点击释放空间</a>
	   </p>						
	   </div>
    </dd>
</dl>	    
<?php } ?>    
    
		
    </div><!--左侧结束-->
	
	
    <div class="column2" id="column2" style="width:29%;"><!-- //右边的快捷消息开始 -->

<dl class='dbox' id="item7">
<dt class='lside'>
    <div class='l'>顺运通android App</div>
 
</dt>
<dd id='listNews'>   
 	 <p style="font-size: 16px;font-weight: bold;color: red;padding: 5px;">1、微信扫描二维码：关注“宏道拓土工程管理中心”公众号</p>
	 <p><img src="/static/wximg.jpg" width="200px;"></p> 
 	 <p style="font-size: 16px;font-weight: bold;color: red;padding: 5px;">2、进入微信公众号 ==> 项目管理 ==> APP下载</p>
	 <p><img src="/static/wxdown.jpg" width="200px;"></p> 	 	 		   
</dd>
</dl>
        
    </div>
    
    
</div>

<br style='clear:both'/>
<!-- //底部 -->
<div align="center" class="footer">
 温馨提示！ 请使用IE7.0+，火狐，谷歌浏览器，效果更佳 
</div>


</div>
</div>
</body>
</html>